Using content from another Kanzi Studio project
You can include content in your current project from other Kanzi Studio projects using project references. You can use project references to import or merge content from projects:
-
Importing a referenced project copies all its items into the current project. To tell which file the imported items come from, you can add a suffix to the names of imported items that you can easily recognize. By default Kanzi Studio adds a suffix with the name of the project you import. See Importing projects.
- Merging a project allows you to bring only the selected items into the current project. When merging you can individually select project items and resolve conflicts between current project and the project you are merging. See Merging projects.
When you make modifications to the items imported using a project reference, you can save these modifications back to the referenced project. See Saving modifications back to the referenced project.
Creating a project reference
To create a project reference:
- In the Library press Alt and right-click Project References and select Project Reference.
Choose Target Project window opens.
- Select the Kanzi Studio project form which you want to use assets and click Open.
- In the Properties in the Project Reference Import Postfix property enter a suffix that allows you to easily recognize the names of the imported items.
For example, to use the name of the reference project, enter <Name>.
- In the Library > Project References right-click the project from which you want to use assets and select:
- Merge Referenced Project creates objects from the referenced project in a new prefab. Kanzi Studio creates the objects even if they exist in the active project and you have not merged it before from the same project reference (in which case it is marked as Identical). When merging projects you can reuse resources and objects you created in another project. Merging projects allows you to import a complete project or only selected resources and objects. During merging Kanzi provides conflict resolution. See Merging projects.
- Import Referenced Project imports the whole referenced project to the active project. Importing creates imported objects in a new prefab in the active project. See Importing projects.
- Clean Import Referenced Project first deletes objects in the active project you previously imported from the referenced project. After deletion Clean Import Referenced Project imports the project content as if using Import Project.
- Import Referenced Project Recursively imports the referenced project and recursively all the projects for which there are Project References in the referenced project.
Saving modifications back to the referenced project
To save modifications back to the referenced project, in the Library > Project References right-click the referenced project the content of which you want to export and select Export Modifications to Referenced Project.
Kanzi Studio saves to the referenced project all modifications you made to the content of the referenced project.
Deleting content imported using a project reference
To delete all items imported using a project reference, in the Library > Project References right-click the referenced project the content of which you want to delete from the active project and select Delete Imported Assets. This deletes all items imported from the selected project reference.
See also
Importing projects
Merging projects
Open topic with navigation